//
//  NewShouHuoAddressViewController.m
//  wangzhe
//
//  Created by 李 佳伟 on 2018/4/3.
//  Copyright © 2018年 李 佳伟. All rights reserved.
//

#import "NewShouHuoAddressViewController.h"
#import "JTCSM.h"
#import "MyInfoView.h"
static CGFloat headerHeight = 50;
@interface NewShouHuoAddressViewController ()
@property (nonatomic,strong) UIImageView *headerImageV;
@end

@implementation NewShouHuoAddressViewController

- (void)gotBack{
    [self.navigationController popViewControllerAnimated:YES];
}
- (void)viewDidLoad {
    [super viewDidLoad];
    self.navigationController.navigationBar.hidden = NO;
    [self.view setBackgroundColor:[UIColor whiteColor]];
    [df isRemoveTarbar:YES];
    leftBarButtonItems_rightBarButtonItems *leftbtn = KCUSTOMNAVIGSTION_ALLOC;
    self.navigationItem.leftBarButtonItem = [leftbtn setBarButtonItemsImageName:@"fanhui.png" frame:KLeftBarButtonItemFrame_image target:self SEL:@selector(gotBack)];
    // Do any additional setup after loading the view.
    
    _headerImageV = [[UIImageView alloc]initWithFrame:CGRectMake(0, KagainChangeHeight, KCONTROLLERWith, 130)];
    _headerImageV.image = [UIImage imageNamed:@"activity_shop_address_image.png"];
    [self.view addSubview:_headerImageV];
    
    NSArray *array = @[@"联系人",@"手机号码",@"选择地区",@"详细地址"];
    NSArray *placordarray = @[@"姓名",@"11位手机号码",@"地区信息",@"街道门牌信息"];
    
    for (int i = 0 ; i<array.count; i++) {
        MyInfoView *infoView = [[MyInfoView alloc]initWithFrame:CGRectMake(0, KVIEW_Y(_headerImageV)+headerHeight*i, KCONTROLLERWith, headerHeight) imagename:nil title:array[i] placeholder:placordarray[i] isShowLabel:textfieldtype radioBtnIndex:0 GroupId:nil];
        infoView.label.frame = CGRectMake(infoView.label.LC_x, infoView.label.LC_y, 120, infoView.label.LC_height);
        infoView.textfield.frame = CGRectMake(infoView.label.LC_width, 0, infoView.LC_width-infoView.label.LC_width, infoView.LC_height);
        infoView.textfield.textAlignment = NSTextAlignmentLeft;
        [self.view addSubview:infoView];
    }
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
